# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=ijq
pkgver=0.3.6
pkgrel=4
pkgdesc="Interactive jq tool"
url="https://git.sr.ht/~gpanders/ijq/"
license="GPL-3.0-or-later"
arch="all"
options="!check" # no test suite
depends="jq"
makedepends="go scdoc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~gpanders/ijq/archive/v$pkgver.tar.gz
	makefile.patch
	"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	make
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
5a88f62e7bb9c749444095da30ed3975d3079d9417b03b861e469a45f3332f7856da5f913251d3ab62d2a57d6295e9491f83c5716478391f5298c1c1f9b24f45  ijq-0.3.6.tar.gz
ad49dafd0ae838f98fa6e656eb01bd1216f3e091128310b8d5ad081f5fce266e1dfdf1fe9991883116bc3b29b48828aebabd58481aa822715797c993f6f62e00  makefile.patch
"
